require 'watir'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
#~ require 'test/unit/ui/reporter'
require 'stringio'
require 'watir/testcase'
require '../watir.config.rb'
require 'functions.rb'
require 'watir/testcase'
require 'ci/reporter/rake/test_unit_loader'
require 'test/unit/ui/console/testrunner'


#~ # Determine which tests to include.


if ($RUN_LOGIN_TESTS)
   require '../LOGIN/Test.Login.1'
   require '../LOGIN/Test.Login.2'
   require '../LOGIN/Test.Login.3'
   require '../LOGIN/Test.Login.4'
 end
 
 
if ($RUN_BLOGS_TESTS)
  require '../BLOGS/Test.Blogs.1'
  require '../BLOGS/BlogsAccess'
end

if ($RUN_BlogAdminScenarios_TESTS)
  require'../BlogAdminScenarios/Test.AutoCreatedBlog'
  require'../BlogAdminScenarios/Test.EnableThemes'
  require'../BlogAdminScenarios/Test.IndividualPostCount'
  require'../BlogAdminScenarios/Test.Permissions'
end


if ($RUN_FORUMS_TESTS)
  require '../FORUMS/Test.Forums.1'
  require '../FORUMS/Test.ForumApprove'
end


if($RUN_ForumScenarios_TESTS)
  require '../ForumScenarios/Test.AnonymousPost'
  require '../ForumScenarios/Test.Attachement'
  require '../ForumScenarios/Test.EditNotes'
  require '../ForumScenarios/Test.EnableThreadTracking'
  require '../ForumScenarios/Test.ModerateAnonymous'
  require '../ForumScenarios/Test.UserPosts'
end

if ($RUN_MEDIA_TESTS)
  require '../MEDIA/Test.Media.1'
  require '../MEDIA/MediaAccess'
end

if($RUN_MediaGalleryScenarios_TESTS)
  require '../MediaGalleryScenarios/Test.DownloadDisclaimer'
  require '../MediaGalleryScenarios/Test.EnableComments'
  require '../MediaGalleryScenarios/Test.FileTypesAllowedRestricted'
  require '../MediaGalleryScenarios/Test.GalleryEnabledDisabled'
  require '../MediaGalleryScenarios/Test.Permissions'
  require '../MediaGalleryScenarios/Test.TotalFileCountQuota'
  require '../MediaGalleryScenarios/Test.TotalStorageQuota'
end

if ($RUN_GROUPS_TESTS)
  require '../GROUPS/Test.Groups.1'
  require '../GROUPS/Test.Groups.2'
  require '../GROUPS/Test.Groups.3'
  require '../GROUPS/Test.Groups.4'
  require '../GROUPS/Test.Groups.5'
  require '../GROUPS/Test.Groups.6'
  require '../GROUPS/Test.Groups.7'
  require '../GROUPS/Test.Groups.8'
  require '../GROUPS/GroupForumAccess'
  require '../GROUPS/GroupBlogAccess'
  require '../GROUPS/GroupMediaAccess'
end


if($RUN_GroupScenarios_TESTS)
  require '../GroupScenarios/Test.BlogOptions'
  require '../GroupScenarios/Test.CreateGroupPermission'
  require '../GroupScenarios/Test.DefaultPresentation'
  require '../GroupScenarios/Test.ForumOptions'
  require '../GroupScenarios/Test.GroupType'
  require '../GroupScenarios/Test.MediaOptions'
  require '../GroupScenarios/Test.SubApplications'
end


if ($RUN_SITECONFIG_TESTS)
  require '../SITECONFIG/Test.SiteAdmin.1'
  require '../SITECONFIG/Test.SiteAdmin.2'
  require '../SITECONFIG/Test.SiteAdmin.3'
  require '../SITECONFIG/Test.SiteAdmin.4'
  require '../SITECONFIG/Test.SiteAdmin.5'
end

if ($RUN_SITECONTENT_TESTS)
  require '../SITECONTENT/Test.SiteAdmin.6'
  require '../SITECONTENT/Test.SiteAdmin.7'
  require '../SITECONTENT/Test.SiteAdmin.8'
  require '../SITECONTENT/Test.SiteAdmin.9'
  require '../SITECONTENT/Test.SiteAdmin.10'
  require '../SITECONTENT/Test.SiteAdmin.11'
  require '../SITECONTENT/Test.SiteAdmin.12'
end

if ($RUN_CONTENTSITESECURITY_TESTS)
  require '../CONTENTSITESECURITY/Test.SiteAdmin.13'
  require '../CONTENTSITESECURITY/Test.SiteAdmin.14'
  require '../CONTENTSITESECURITY/Test.SiteAdmin.15'
  require '../CONTENTSITESECURITY/Test.SiteAdmin.16'
end

if ($RUN_TOOLS_TESTS)
  require '../TOOLS/Test.SiteAdmin.17'
  require '../TOOLS/Test.SiteAdmin.18'
  require '../TOOLS/Test.SiteAdmin.19'
  require '../TOOLS/Test.SiteAdmin.20' 
end


if ($RUN_BLOGADMIN_TESTS)
  require '../BLOGADMIN/Test.BlogAdmin.1'
  require '../BLOGADMIN/Test.BlogAdmin.2'
  require '../BLOGADMIN/Test.BlogAdmin.4'
  require '../BLOGADMIN/Test.BlogAdmin.5'
  require '../BLOGADMIN/Test.BlogAdmin.6'
  require '../BLOGADMIN/Test.BlogAdmin.7'
  require '../BLOGADMIN/Test.BlogAdmin.8'
end

if ($RUN_FORUMADMIN_TESTS)
  require '../FORUMADMIN/Test.ForumAdmin.1'
  require '../FORUMADMIN/Test.ForumAdmin.2'
  require '../FORUMADMIN/Test.ForumAdmin.4'
  require '../FORUMADMIN/Test.ForumAdmin.5'
end

if ($RUN_GALLERYADMIN_TESTS)
  require '../GALLERYADMIN/Test.GalleryAdmin.1'
  require '../GALLERYADMIN/Test.GalleryAdmin.2'
  require '../GALLERYADMIN/Test.GalleryAdmin.4'
  require '../GALLERYADMIN/Test.GalleryAdmin.5'
end

if ($RUN_GROUPSADMIN_TESTS)
  require '../GROUPSADMIN/Test.GroupAdmin.1'
  require '../GROUPSADMIN/Test.GroupAdmin.2'
  require '../GROUPSADMIN/Test.GroupAdmin.3'
  require '../GROUPSADMIN/Test.GroupAdmin.4'
  require '../GROUPSADMIN/Test.GroupAdmin.5'
end

if ($RUN_MEMBERADMIN_TESTS)
  require '../MEMBERADMIN/Test.MemberAdmin.1'
  require '../MEMBERADMIN/Test.MemberAdmin.2'
  require '../MEMBERADMIN/Test.MemberAdmin.3'
  require '../MEMBERADMIN/Test.MemberAdmin.4'
  require '../MEMBERADMIN/Test.MemberAdmin.5'
  require '../MEMBERADMIN/Test.MemberAdmin.6'
end


if ($RUN_MANAGEBLOGS_TESTS)
  require '../MANAGEBLOGS/Test.Blogs.1'
  require '../MANAGEBLOGS/Test.Blogs.2'
  require '../MANAGEBLOGS/Test.Blogs.3'
  require '../MANAGEBLOGS/Test.Blogs.4'
  require '../MANAGEBLOGS/Test.Blogs.6'
  require '../MANAGEBLOGS/Test.Blogs.7'
  require '../MANAGEBLOGS/Test.Blogs.8'
  require '../MANAGEBLOGS/Test.Blogs.9'
  require '../MANAGEBLOGS/Test.Blogs.10'
  require '../MANAGEBLOGS/Test.Blogs.11'
  require '../MANAGEBLOGS/Test.Blogs.12'
  require '../MANAGEBLOGS/Test.Blogs.13'
  require '../MANAGEBLOGS/Test.Blogs.14'
  require '../MANAGEBLOGS/Test.Blogs.15'
end

if ($RUN_ManageBlogScenarios_TESTS)
  require'../ManageBlogScenarios/Test.BlogFeedBack'
  require'../ManageBlogScenarios/Test.BlogSetup'
end

if ($RUN_MANAGEMEDIA_TESTS)
  require '../MANAGEMEDIA/Test.Media.1'
  require '../MANAGEMEDIA/Test.Media.2'
  require '../MANAGEMEDIA/Test.Media.3'
  require '../MANAGEMEDIA/Test.Media.5'
  require '../MANAGEMEDIA/Test.Media.6'
  require '../MANAGEMEDIA/Test.Media.7'
end

if($RUN_SetupScenarios_TESTS)
  require '../SetupScenarios/Test.ActivityLogging'
  require '../SetupScenarios/Test.EnableApplications'
  require '../SetupScenarios/Test.EnableEmail'
  require '../SetupScenarios/Test.EnableLanguageFilter'
end

if($RUN_SiteAdminScenarios_TESTS)
  require '../SiteAdminScenarios/Test.Anonymous'
  require '../SiteAdminScenarios/Test.MemberSystem'
  require '../SiteAdminScenarios/Test.UserFilesSize'
end


if($RUN_UserScenarios_TESTS)
  require '../UserScenarios/Test.AllowBanned'
  require '../UserScenarios/Test.AllowGender'
  require '../UserScenarios/Test.AllowLogin'
  require '../UserScenarios/Test.AllowRegistration'
  require '../UserScenarios/Test.AuthenticateProfileViewing'
  require '../UserScenarios/Test.ContactInformation'
  require '../UserScenarios/Test.DisplayName'
  require '../UserScenarios/Test.EnableAvatar'
  require '../UserScenarios/Test.EnableDisableLogin'
  require '../UserScenarios/Test.UserAccountApproval'
  require '../UserScenarios/Test.UserNameLimits'
end
